#nullable enable
using System;
using System.Collections.Generic;
using Application.Core.Entity;

namespace Application.Core.Dto;

/// <summary>
/// 日志查询请求
/// </summary>
public class LogQueryDto
{
    /// <summary>
    /// 页码
    /// </summary>
    public int PageIndex { get; set; } = 1;

    /// <summary>
    /// 每页数量
    /// </summary>
    public int PageSize { get; set; } = 20;

    /// <summary>
    /// 搜索关键词
    /// </summary>
    public string? SearchText { get; set; }

    /// <summary>
    /// 日志级别
    /// </summary>
    public string? Level { get; set; }

    /// <summary>
    /// 开始时间
    /// </summary>
    public DateTime? StartTime { get; set; }

    /// <summary>
    /// 结束时间
    /// </summary>
    public DateTime? EndTime { get; set; }

    /// <summary>
    /// 排序字段
    /// </summary>
    public string? SortField { get; set; }

    /// <summary>
    /// 排序方向 (asc/desc)
    /// </summary>
    public string? SortDirection { get; set; } = "desc";
}